#include<malloc.h>
#include<stdio.h>

#ifndef _BINARYTREENODE_H
#define _BINARYTREENODE_H

typedef struct BinaryTreeNode{
    int value;
    struct BinaryTreeNode* l;
    struct BinaryTreeNode* r;   
} BinaryTreeNode;

//根据前序遍历和中序遍历构造一棵二叉树
BinaryTreeNode* construct(int* preorder,int* inorder,int length);
BinaryTreeNode* constructCore(int* startPreorder,int* endPreorder,int* startInorder,int* endInorder);
#endif